import request from "@/utils/http";
// 获取书签列表
export function GetBookmarkList(userid: string) {
  let data = {
    model: { TenantaID: userid },
    PageInfo: { page: 1, limit: 1000, field: "CreateTime", order: "DESC" },
  };
  return request({
    url: "/api/Map_Bookmark/GetPageData",
    method: "post",
    data,
  });
}

// 添加书签
export function addBookmark(inputData: any) {
  let data = inputData;
  return request({
    url: "/api/Map_Bookmark/Add",
    method: "post",
    data,
  });
}

// 删除书签
export function deleteBookmark(inputData: string) {
  let data = [inputData];
  return request({
    url: "/api/Map_Bookmark/Del",
    method: "post",
    data,
  });
}
